package com.jvm.classloader;

/**
 * 静态属性定义在哪儿就表示是对哪个类的主动使用
 */
class Parent03{
    static int a = 3;

    static {
        System.out.println("Parent03 static block");
    }

    static void doSomething(){
        System.out.println("do something");
    }
}

class Child03 extends Parent03{
    static {
        System.out.println("Child03 static block");
    }
}

public class MyTest11 {

    public static void main(String[] args) {
        System.out.println(Child03.a);

        Child03.doSomething();
    }
}
